package com.nuoniu.sibanyun.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@ApiModel("APP--工序汇报")
public class ProcedureCardDetailVo extends BaseEntity {

    @ApiModelProperty(value = "工人姓名")
    @TableField("worker_name")
    private String workerName;

    @ApiModelProperty(value = "工人工号（工人编码）")
    @TableField("worker_no")
    private String workerNo;

    @ApiModelProperty(value = "工序名称")
    @TableField("work_procedure_name")
    private String workProcedureName;

    @ApiModelProperty(value = "汇报单号")
    @TableField("report_code")
    private String reportCode;

    @ApiModelProperty(value = "派工单ID")
    @TableField("production_dispatch_id")
    private Integer productionDispatchId;

    @ApiModelProperty(value = "合格数量")
    @TableField("qualified_quantity")
    private BigDecimal qualifiedQuantity;

    @ApiModelProperty(value = "不合格数量（报废数量）")
    @TableField("unqualified_quantity")
    private BigDecimal unqualifiedQuantity;

    @ApiModelProperty(value = "返工数量")
    @TableField("rework_quantity")
    private BigDecimal reworkQuantity;

    @ApiModelProperty(value = "报废原因")
    @TableField("unqualified_reason")
    private String unqualifiedReason;

    @ApiModelProperty(value = "合格率")
    @TableField("qualified_rate")
    private BigDecimal qualifiedRate;

    @ApiModelProperty(value = "加工日期")
    @TableField("work_date")
    private LocalDate workDate;

    @ApiModelProperty(value = "加工开始时间")
    @TableField("work_begin_time")
    private LocalDateTime workBeginTime;

    @ApiModelProperty(value = "加工结束时间")
    @TableField("work_end_time")
    private LocalDateTime workEndTime;

    @ApiModelProperty(value = "工时")
    @TableField("work_hour")
    private BigDecimal workHour;

    @ApiModelProperty(value = "工资类型1:计件2:计时3:不核算")
    @TableField("wages_type")
    private Integer wagesType;

    @ApiModelProperty(value = "工价")
    @TableField("wages")
    private BigDecimal wages;

    @ApiModelProperty(value = "工人工资")
    @TableField("worker_wages")
    private BigDecimal workerWages;

    @ApiModelProperty(value = "合格品价格")
    @TableField("qualified_price")
    private BigDecimal qualifiedPrice;

    @ApiModelProperty(value = "返修价格")
    @TableField("rework_price")
    private BigDecimal reworkPrice;

    @ApiModelProperty(value = "报废价格")
    @TableField("scrap_price")
    private BigDecimal scrapPrice;
}
